//数据列表转column
export const data2Column = (data)=> {
    let column = [];
    let result = data.map(element => {
        return {   
            title: `${element}`,
            dataIndex: `${element}`,
            key: `${element}`,
        }
    })
        
    column = column.concat(result)
    return column;
};
